package zhuoyue.com.yanjiaohui.acticity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import zhuoyue.com.yanjiaohui.R;
import zhuoyue.com.yanjiaohui.util.MD5util;

public class TestActivity extends AppCompatActivity {
    private TextView mTextView1,mTextView2,mTextView3,mTextView4;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
        mTextView1 = (TextView) findViewById(R.id.test_tv1);
        mTextView2 = (TextView) findViewById(R.id.test_tv2);
        mTextView2 = (TextView) findViewById(R.id.test_tv3);
        mTextView2 = (TextView) findViewById(R.id.test_tv4);

    }

    public void btn_click(View view) {
        String string = mTextView1.getText().toString();
        String encrypt = MD5util.encrypt(string);
        String str = encrypt + "yanjiaohui".toString();
        String encrypt1 = MD5util.encrypt(str);
        mTextView2.setText(encrypt1);
    }
}
